dundas.Math Class

 
 

Properties

 
  Name Description
  TAU  
 
 

Constants

 
  Name Description

TAU
 
 

Methods

 
  Name Description

Static
circleArea Calculates the area of the circle with the specified radius.

Static
circleCircumference Calculates the circumference around a circle with the specified radius.

Static
circleRadius Calculates the radius of a circle with the specified area.

Static
circleRadiusFromCircumference Calculates the radius of a circle with the specified circumference.

Static
constrain Returns the closest value to value such that it is in the range (min, max).

Static
decimalPlaces Determines the number of fractional digits present in the specified value.

Static
degreesToRadians Converts an angle in degrees to radians.

Static
finite Returns the finite numbers out of the values passed.

Static
gcd Calculates the greatest positive common divisor of a and b.

Static
hypotenuse Returns the length of the hypotenuse of a right angle triangle given the length of the opposite and adjacent sides.

Static
isFiniteNumber Gets a value indicating whether the specified value is a finite number.

Static
lerp Returns the value that corresponds to the linear interpolation parameter t.

Static
log Returns the logarithm of x in base b.

Static
maxFinite Returns the maximum finite number out of all values passed.

Static
maxNonNull Returns the largest quantity from that is not null, or null if there is no such value.

Static
minFinite Returns the minimum finite number out of all values passed.

Static
minNonNull Returns the largest quantity from that is not null, or null if there is no such value.

Static
numericBound Bound the specified value to the specified min and max.

Static
radiansToDegrees Converts an angle in radians to degrees.

Static
reverseLerp Returns the linear interpolation parameter t for the value y.

Static
round Rounds a double-precision floating-point value to a specified number of fractional digits.

Static
roundAwayFromZero Rounds a value. Half values (i.e. when the fraction of value is 0.5) are rounded to the nearest number with greater magnitude.

Static
sign Returns an integer that indicates the sign of a number.

Static
signNonZero Returns an integer that indicates the sign of a number.

Static
smallestNonZero Returns the value closest to zero other than zero in the specified values.

Static
triangleArea Returns the area of the triangle whose sides are a, b, and c.